<?php
	include_once('function/func.php');
?>
<div class="one_category">
    <div class="one_category_line"></div>
    <div class="one_category_title">
        <h3>Sản phẩm khuyến mãi</h3>
        <?php if(count($result)>12):?>
        <p style="font-size: 11px;color:#999999">Items per page 
            <select name="" id="" style="font-size: 11px;color:#333333">
                <option value="12">12</option>
                <option value="12">24</option>
            </select>
        </p>
        <?php endif;?>
    </div>
    <div class="one_category_allProducts">
    	<?php
			if($result){
				foreach($result as $r){
		?>
        <div class="one_category_OneProducts" style="height: 258px">
            <div class="img_produt"><a title="<?=$r->title?>" href="<?=PATH_URL.'products/detail/'.$r->id.''?>"><img src="<?=PATH_URL.'static/images/products/'.$r->image.''?>" width="150" height="187" /></a></div>
            <div class="img_cart" style="margin-top: 10px; width: 56px"><img src="<?=PATH_URL.'static/images/icon_cart_big.png'?>" width="56" height="56" /></div>
            <div class="one_category_OneProducts_text" style="width: 100px;">
                <p style="width: 100px;font-size: 11px;"><a title="<?=$r->title?>" href="<?=PATH_URL.'products/detail/'.$r->id.''?>"><?=cutString($r->title,13,$type=' ...')?></a></p>
                <h3 style="font-size: 12px"><strike><?=number_format($r->price_old,0,',','.');?> vnđ</strike></h3>
                <h3><?=number_format($r->price_new,0,',','.');?> vnđ</h3>
            </div>									
        </div>
        <?php }}?>
       
    </div>
    <div class="pagination">
    
    </div>
</div><!--end one_category-->